package game 
{
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Backdrop;
	
	/**
	 * ...
	 * @author Matt Hofmann
	 */
	public class Background extends Backdrop 
	{
		private const _scrollFactor:Number = 0.5;
		
		// Forest tile - 512 x 512
		[Embed(source = "../../assets/forest_bg.png")]
		private const FOREST:Class;
		static public const typeForest:uint = 0;
		
		// TODO: other tiles?
		
		public function Background(_type:uint) 
		{
			// Define entity graphic
			if (_type == typeForest) {
				super(FOREST, true, true);
			}
			
			this.scrollX = _scrollFactor;
			this.scrollY = _scrollFactor;
		}
		
	}

}